SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[UserInfoLogin]
    @Login VARBINARY(MAX) ,
    @Password VARBINARY(MAX)
AS 
    BEGIN
        SELECT  Id
        FROM    UserInfo
        WHERE   LOGIN = @Login
                AND PASSWORD = @Password
                AND DELETED = 0
    END
GO
